﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebServisArayuz.Master" AutoEventWireup="true" CodeBehind="GercekisiRehinAlacakliIslemleri.aspx.cs" Inherits="TakbisBilgiSorgu_v1.WebForm2" EnableEventValidation="false"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="js/MyScript/GercekKisiIslemleri.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div class="sayfa_adi">
        Gerçek Kişi İşlemleri / Rehin Alacakli İşlemleri
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <asp:Label ID="lblGercekKisiIslemlerhata" class="lblhata" runat="server" Text="Label">Hata mesajı</asp:Label>
<div id="DivGercekKisiRehinIslemleri">
<div id="GercekKisiRehinSolDiv">
<table class="GercekKisiRehinTable">
    <tr>
		<td><asp:Label ID="lblTcKimlikNo" runat="server" Text="TcKimlikNo"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtTcKimlikNo" class="textboxs" runat="server" TabIndex="2"></asp:TextBox></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblAdi" runat="server" Text="Adi"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtAd" class="textboxs" runat="server" TabIndex="2"></asp:TextBox></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblSoyadi" runat="server" Text="Soyadı"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtSoyad" class="textboxs" runat="server" TabIndex="3"></asp:TextBox></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblAnaAd" runat="server" Text="Anne Adı"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtAnaAd" class="textboxs" runat="server" TabIndex="5"></asp:TextBox></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>
    </div>
<div id="GercekKisiRehinOrtaDiv">
 <table class="GercekKisiRehinTable">
    <tr>
		<td><asp:Label ID="lblBabaAdı" runat="server" Text="Baba Adı"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtBabaAd" class="textboxs" runat="server" TabIndex="6"></asp:TextBox></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblCinsiyet" runat="server" Text="Cinsiyeti"></asp:Label></td>
		<td>:</td>
		<td><asp:DropDownList ID="ddlCinsiyet" class="dropdownlists" runat="server" Width="205px"
        TabIndex="7">
        <asp:ListItem Value="sec">Seçiniz..</asp:ListItem>
        <asp:ListItem Value="1">Erkek</asp:ListItem>
        <asp:ListItem Value="2">Kadın</asp:ListItem>
        <asp:ListItem Value="3">Hepsi</asp:ListItem>      
    </asp:DropDownList></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblDogumYeri" runat="server" Text="Doğum Yeri"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtDogumYeri" class="textboxs" runat="server" TabIndex="8"></asp:TextBox></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblDogumTarih" runat="server" Text="Doğum Tarihi"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtDogumGun" class="textboxs" runat="server" TabIndex="9"></asp:TextBox></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td> <asp:Button ID="btnGercekKisiGetir" runat="server" class="butons sorguico" TabIndex="13"
        Text="Sorgula" OnClientClick="return validateData();" OnClick="btnGercekKisiGetir_Click" Width="200" /></td>
	</tr>
</table>
</div>
<div id="GercekKisiRehinSagDiv">
<table class="GercekKisiRehinTable">
	<tr>
		<td><asp:Label ID="lblAktifMi" runat="server" Text="Aktif Mi"></asp:Label></td>
		<td>:</td>
		<td><asp:DropDownList ID="ddlTapuBolumDurum" class="dropdownlists" runat="server" Width="205px"
        TabIndex="10">
        <asp:ListItem Value="sec">Seçiniz..</asp:ListItem>
        <asp:ListItem Value="0">Hepsi</asp:ListItem>
        <asp:ListItem Value="1">Aktif</asp:ListItem>
        <asp:ListItem Value="2">Pasif</asp:ListItem>
    </asp:DropDownList></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblBolgeTip" runat="server" Text="BölgeTip"></asp:Label></td>
		<td>:</td>
		<td><asp:DropDownList ID="ddlBolgeTip" class="dropdownlists" runat="server" Width="205px"
        TabIndex="11">
        <asp:ListItem Value="sec">Seciniz..</asp:ListItem>
        <asp:ListItem Value="0">TumTurkiye</asp:ListItem>
        <asp:ListItem Value="1">Il</asp:ListItem>
        <asp:ListItem Value="2">Ilce</asp:ListItem>
        <asp:ListItem Value="3">Kurum</asp:ListItem>
        <asp:ListItem Value="4">Mahalle</asp:ListItem>
    </asp:DropDownList></td>
	</tr>
	<tr>
		<td><asp:Label ID="lblBölgeID" runat="server" Text="BölgeID"></asp:Label></td>
		<td>:</td>
		<td><asp:TextBox ID="txtBolgeID" class="textboxs" runat="server" TabIndex="12"></asp:TextBox></td>
	</tr>
	<tr>
		<td></td>
		<td>:</td>
		<td></td>
	</tr>
</table>
</div>
<div style="clear:both"></div>
</div>   

<div id="DivGercekKisi" class="DivTasinmazIslemleriBloklar">
  <div class="DivBlokIsim">Gerçek Kişi</div><div class="DivExcell"><asp:Button ID="btnGercekKisiExceleYaz" runat="server" class="butons excelli" OnClick="btnGercekKisiExceleYaz_Click"
        TabIndex="9" Text="Excele Yaz"/></div>
  <div class="DivGrid">
      <asp:GridView ID="gvGercekKisi" runat="server" CssClass="grids" AllowPaging="True"
        AutoGenerateColumns="False" DataKeyNames="GercekKisiBilgiID" OnPageIndexChanging="gvGercekKisi_PageIndexChanging"
        OnRowCreated="gvGercekKisi_RowCreated" OnRowDataBound="gvGercekKisi_RowDataBound">
        <Columns>
            <asp:CommandField HeaderText=" Seçim " SelectText="Seç " ShowSelectButton="True"
                Visible="False" />
            <asp:TemplateField HeaderText="Sec">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBoxGercekKisiBilgi" runat="server"></asp:CheckBox>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Gerçek Kisi ID">
                <ItemTemplate>
                    <asp:Label ID="GercekKisiBilgiID" runat="server" Text='<%# Eval("GercekKisiBilgiID") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="TCKimlikNo">
                <ItemTemplate>
                    <asp:Label ID="TCKimlikNo" runat="server" Text='<%# Eval("TCKimlikNo") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Adı">
                <ItemTemplate>
                    <asp:Label ID="Ad" runat="server" Text='<%# Eval("Ad") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Soyadı">
                <ItemTemplate>
                    <asp:Label ID="Soyad" runat="server" Text='<%# Eval("Soyad") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Baba Adı">
                <ItemTemplate>
                    <asp:Label ID="BabaAd" runat="server" Text='<%# Eval("BabaAd") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ana Adı">
                <ItemTemplate>
                    <asp:Label ID="AnaAd" runat="server" Text='<%# Eval("AnaAd") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Dogum Tarihi">
                <ItemTemplate>
                    <asp:Label ID="DogumTarih" runat="server" Text='<%# Eval("DogumTarih","{0:dd/MM/yyyy}") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Dogum Yeri">
                <ItemTemplate>
                    <asp:Label ID="DogumYer" runat="server" Text='<%# Eval("DogumYer") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Cinsiyeti">
                <ItemTemplate>
                    <asp:Label ID="Cinsiyet" runat="server" Text='<%# Eval("Cinsiyet") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ölüm Tarihi">
                <ItemTemplate>
                    <asp:Label ID="OlumTarih" runat="server" Text='<%# Eval("OlumTarih","{0:dd/MM/yyyy}") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Aktif Mi">
                <ItemTemplate>
                    <asp:Label ID="AktifMi" runat="server" Text='<%# Eval("AktifMi") %>'>
                    </asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle CssClass="gridsFooter" />
        <HeaderStyle CssClass="gridsHeader" />
        <PagerStyle CssClass="gridsPager" />
        <RowStyle CssClass="gridsTextColor" />
        <SelectedRowStyle CssClass="selectedRows" />
    </asp:GridView>
  </div>
  <div style="clear:both"></div> 
  <asp:Button ID="btnRehinGetir" runat="server" class="butons getirico" TabIndex="13"
            Text="Rehin Getir" OnClick="btnRehinGetir_Click" /><br />
    <asp:RadioButton ID="rbRehinAktif" runat="server" AutoPostBack="True" ForeColor="White"
            OnCheckedChanged="rbRehinAktif_CheckedChanged" Text="Aktif" Checked="True" />
        <asp:RadioButton ID="rbRehinPasif" runat="server" AutoPostBack="True" ForeColor="White"
            OnCheckedChanged="rbRehinPasif_CheckedChanged" Text="Pasif" />
        <asp:RadioButton ID="rbRehinHepsi" runat="server" AutoPostBack="True" ForeColor="White"
            OnCheckedChanged="rbRehinHepsi_CheckedChanged" Text="Hepsi" />  
<div id="Div1GercekKisi" class="DivTasinmazIslemleriBloklar">
  <div class="DivBlokIsim">Blok Adı</div> <div class="DivExcell">Excell Buton</div>
  <div class="DivGrid"></div>
  <div style="clear:both"></div>
</div>
</div> 
    <div>
    
       
        
    </div>
    <div>  
    <asp:GridView ID="gvRehin" CssClass="grids" runat="server" AllowPaging="True" DataKeyNames="RehinBilgiID"
            OnPageIndexChanging="gvRehin_PageIndexChanging" 
            OnRowCreated="gvRehin_RowCreated" AutoGenerateColumns="False"
            OnRowDataBound="gvRehin_RowDataBound">
            <Columns>
                <asp:CommandField HeaderText=" Seçim " ShowSelectButton="True" SelectText="Seç "
                    Visible="False" />
                    <asp:BoundField DataField="RehinBilgiID" HeaderText="RehinBilgiID" ItemStyle-Width="150px"
                        Visible="false">
                        <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Rehin Miktar">
                        <ItemTemplate>
                            <asp:Label ID="RehinMiktar" runat="server" Text='<%# Eval("RehinMiktar") %>'>
                            </asp:Label>
                        </ItemTemplate>
                       
                          </asp:TemplateField>
                       
                       <asp:TemplateField HeaderText="Kredi Miktar">
                        <itemtemplate>
                                    <asp:Label ID="KrediMiktar" runat="server" Text='<%# Eval("KrediMiktar") %>'>
                                    </asp:Label>
                                </itemtemplate>
                                   </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vade">
                            <itemtemplate>
                                    <asp:Label ID="Vade" runat="server" Text='<%# Eval("Vade") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText="Para Birimi">
                            <itemtemplate>
                                    <asp:Label ID="DovizAdi" runat="server" Text='<%# Eval("Doviz.Ad") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Faiz">
                            <itemtemplate>
                                    <asp:Label ID="Faiz" runat="server" Text='<%# Eval("Faiz") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="RehinTip">
                            <itemtemplate>
                                    <asp:Label ID="RehinTip" runat="server" Text='<%# Eval("RehinTip") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="KrediTur">
                            <itemtemplate>
                                    <asp:Label ID="KrediTur" runat="server" Text='<%# Eval("KrediTur") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Muteselsil Mi">
                            <itemtemplate>
                                    <asp:Label ID="MuteselsilMi" runat="server" Text='<%# Eval("MuteselsilMi") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Aktif Mi">
                            <itemtemplate>
                                    <asp:Label ID="TapuBolumDurum" runat="server" Text='<%# Eval("TapuBolumDurum") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sartlar">
                            <itemtemplate>
                                    <asp:Label ID="Sartlar" runat="server" Text='<%# Eval("Sartlar") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Acıklama">
                            <itemtemplate>
                                    <asp:Label ID="Aciklama" runat="server" Text='<%# Eval("Aciklama") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis İşlemID" Visible="False">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemIslemBilgiID" runat="server" Text='<%# Eval("TesisIslem.IslemBilgiID") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis İşlem Adı">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemIslemTanimAd" runat="server" Text='<%# Eval("TesisIslem.IslemTanimAd") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis İşlem Başlama Şekli Adı" Visible="False">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemBaslamaSekilAd" runat="server" Text='<%# Eval("TesisIslem.BaslamaSekilAd") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis İşlem YevmiyeID" Visible="False">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemYevmiyeYevmiyeBilgiID" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.YevmiyeBilgiID") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis Yevmiye No">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemYevmiyeYevmiyeNo" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.YevmiyeNo") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis Yevmiye Tarih">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemYevmiyeTarih" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.Tarih","{0:dd/MM/yyyy}") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tesis Yevmiye Kurum">
                            <itemtemplate>
                                    <asp:Label ID="TesisIslemYevmiyeKurum" runat="server" Text='<%# Eval("TesisIslem.Yevmiye.Kurum") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin İşlemID" Visible="False">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemIslemBilgiID" runat="server" Text='<%# Eval("TerkinIslem.IslemBilgiID") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin İşlem Adı">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemIslemTanimAd" runat="server" Text='<%# Eval("TerkinIslem.IslemTanimAd") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin İşlem Başlama Şekli Adı" Visible="False">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemBaslamaSekilAd" runat="server" Text='<%# Eval("TerkinIslem.BaslamaSekilAd") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin İşlem YevmiyeID" Visible="False">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemYevmiyeYevmiyeBilgiID" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.YevmiyeBilgiID") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin Yevmiye No">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemYevmiyeYevmiyeNo" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.YevmiyeNo") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin Yevmiye Tarih">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemYevmiyeTarih" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.Tarih","{0:dd/MM/yyyy}") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Terkin Yevmiye Kurum">
                            <itemtemplate>
                                    <asp:Label ID="TerkinIslemYevmiyeKurum" runat="server" Text='<%# Eval("TerkinIslem.Yevmiye.Kurum") %>'>
                                    </asp:Label>
                                </itemtemplate>
                        </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="gridsHeader" />
            <PagerStyle CssClass="gridsPager" />
            <RowStyle CssClass="gridsTextColor" />
            <SelectedRowStyle CssClass="selectedRows" />
        </asp:GridView>   
    </div>
    <div>
    <asp:Button ID="btnGercekKisiRehinExceleYaz" runat="server" class="butons excelli" OnClick="btnGercekKisiRehinExceleYaz_Click"
        TabIndex="9" Text="Excele Yaz" />
    
    </div>
    </form>
</asp:Content>
